{% extends "school/layout.html" %}

{% set page_title = translate('修改密码') %}

{% block content %}
<div class="m-scontent">
	<fieldset class="fieldset">
		<legend>{{translate('修改密码')}}</legend>
		<form action="" method="post" enctype="multipart/form-data" class="form-horizontal">
			{{ form.hidden_tag() }}
        	<div class="form-group">
				{{ form.old_pwd.label(class_="control-label") }}
				{{ form.old_pwd(class_="form-control") }}
				{% if form.old_pwd.errors %}
				<div class="error">{{ form.old_pwd.errors[0] }}</div>
				{% endif %}
			</div>

			<div class="form-group">
				{{ form.new_pwd.label(class_="control-label") }}
				{{ form.new_pwd(class_="form-control") }}
				{% if form.new_pwd.errors %}
				<div class="error">{{ form.new_pwd.errors[0] }}</div>
				{% endif %}
			</div>

			<div class="form-group">
				{{ form.confirm_pwd.label(class_="control-label") }}
				{{ form.confirm_pwd(class_="form-control") }}
			</div>


			<div>
				<button class="btn btn-primary">{{translate('保存')}}</button>
			</div>
		</form>
	</fieldset>
</div>
{% endblock %}
